//
//  XMGProgressView.m
//  百思不得姐
//
//  Created by 杨庆 on 2017/1/16.
//  Copyright © 2017年 杨庆. All rights reserved.
//

#import "XMGProgressView.h"

@implementation XMGProgressView


-(void)awakeFromNib{
	[super awakeFromNib];
	self.roundedCorners=3;
	self.progressTintColor=[UIColor orangeColor];
	
}



-(void)setProgress:(CGFloat)progress animated:(BOOL)animated{
	[super setProgress:progress animated:animated];
	
	NSString*text=[NSString stringWithFormat:@"%.0f%%",progress*100];
	//用空格代替负号
	self.progressLabel.text=[text stringByReplacingOccurrencesOfString:@"-" withString:@""];
}



@end
